// 云对象教程: https://uniapp.dcloud.net.cn/uniCloud/cloud-obj
// jsdoc语法提示教程：https://ask.dcloud.net.cn/docs/#//ask.dcloud.net.cn/article/129
module.exports = {
	_before: function () { // 通用预处理器

	},
	async login(data){
		const { access_token, openid } = data;
		const res = await uniCloud.getPhoneNumber({
			provider: 'univerify',
			appid: '__UNI__17C4243',
			access_token,
			openid
		})
		
		console.log(res)
		return {
			code: 200,
			msg: "手机号获取成功",
			data: res
		}
	}
}
